package com.ruoyi.aimp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 警告信息对象 aimp_warnrecord
 * 
 * @author fengfeng
 * @date 2022-06-18
 */
public class Aimp_Warnrecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long warnrecordId;

    /** 告警类型 */
    @Excel(name = "告警类型")
    private String warnrecordType;

    /** 接收人 */
    @Excel(name = "接收人")
    private String warnrecordReceiver;

    /** 告警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "告警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warnrecordTime;

    /** 通知方式 */
    @Excel(name = "通知方式")
    private String warnrecordNotifiway;

    /** 状态（1发送成功 0发送失败） */
    @Excel(name = "状态", readConverterExp = "1=发送成功,0=发送失败")
    private Long warnrecordState;

    /** 内容 */
    @Excel(name = "内容")
    private String warnrecordCommond;

    public void setWarnrecordId(Long warnrecordId) 
    {
        this.warnrecordId = warnrecordId;
    }

    public Long getWarnrecordId() 
    {
        return warnrecordId;
    }
    public void setWarnrecordType(String warnrecordType) 
    {
        this.warnrecordType = warnrecordType;
    }

    public String getWarnrecordType() 
    {
        return warnrecordType;
    }
    public void setWarnrecordReceiver(String warnrecordReceiver) 
    {
        this.warnrecordReceiver = warnrecordReceiver;
    }

    public String getWarnrecordReceiver() 
    {
        return warnrecordReceiver;
    }
    public void setWarnrecordTime(Date warnrecordTime) 
    {
        this.warnrecordTime = warnrecordTime;
    }

    public Date getWarnrecordTime() 
    {
        return warnrecordTime;
    }
    public void setWarnrecordNotifiway(String warnrecordNotifiway) 
    {
        this.warnrecordNotifiway = warnrecordNotifiway;
    }

    public String getWarnrecordNotifiway() 
    {
        return warnrecordNotifiway;
    }
    public void setWarnrecordState(Long warnrecordState) 
    {
        this.warnrecordState = warnrecordState;
    }

    public Long getWarnrecordState() 
    {
        return warnrecordState;
    }
    public void setWarnrecordCommond(String warnrecordCommond) 
    {
        this.warnrecordCommond = warnrecordCommond;
    }

    public String getWarnrecordCommond() 
    {
        return warnrecordCommond;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warnrecordId", getWarnrecordId())
            .append("warnrecordType", getWarnrecordType())
            .append("warnrecordReceiver", getWarnrecordReceiver())
            .append("warnrecordTime", getWarnrecordTime())
            .append("warnrecordNotifiway", getWarnrecordNotifiway())
            .append("warnrecordState", getWarnrecordState())
            .append("warnrecordCommond", getWarnrecordCommond())
            .toString();
    }
}
